<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Main extends MY_Controller {
	
	public function index()
	{
        $this->load->model('berichtmodel');
        $berichten = $this->berichtmodel->SelectTop(5);
        $data['berichten'] = $berichten;
		$data['page'] = 'landing';
		$this->LoadView('landing',$data);
	}
	public function contact()
	{
		$data['page'] = 'contact';
		$this->LoadView('contact', $data);
	}
	
	public function about()
	{
		$data['page'] = 'about';
		$this->LoadView('about', $data);
	}
	public function login()
	{
		$data['page'] = 'login';
		$this->LoadView('login', $data);
	}
	public function players_list()
	{
		$data['page'] = 'players_list';
		$this->LoadView('players_list',$data);
	}
	public function players_detail()
	{
		$data['page'] = 'players_detail';
		$this->LoadView('players_detail', $data);
	}
	public function match_list()
	{
		$data['page'] = 'match_list';
		$this->LoadView('match_list', $data);
	}
	public function match_detail()
	{
		$data['page'] = 'match_detail';
		$this->LoadView('match_detail', $data);
	}
	public function ranking()
	{
		$data['page'] = 'ranking';
		$this->LoadView('ranking', $data);
	}
	public function media_detail()
	{
		$data['page'] = 'media_detail';
		$this->LoadView('media_detail', $data);
	}
	public function media_list()
	{
		$data['page'] = 'media_list';
		$this->LoadView('media_list', $data);
	}
}
